<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.Location</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.Location";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.Location.html" class="symbol">dil.Location</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> high.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="Location" href="./htmlsrc/dil.Location.html#L10" kind="class" beg="10" end="93">Location</a>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#Location" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L10">#</a></dt>
<dd class="ddef">
<div class="summary">Represents a location in a source text.</div>
<dl>
<dt class="decl">char[] <a class="symbol _variable" name="Location.filePath" href="./htmlsrc/dil.Location.html#L12" kind="variable" beg="12" end="12">filePath</a>; <a title="Permalink to this symbol" href="#Location.filePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L12">#</a></dt>
<dd class="ddef">
<div class="summary">The file path.</div></dd>
<dt class="decl">size_t <a class="symbol _variable" name="Location.lineNum" href="./htmlsrc/dil.Location.html#L13" kind="variable" beg="13" end="13">lineNum</a>; <a title="Permalink to this symbol" href="#Location.lineNum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L13">#</a></dt>
<dd class="ddef">
<div class="summary">The line number.</div></dd>
<dt class="decl">char* <a class="symbol _variable" name="Location.lineBegin" href="./htmlsrc/dil.Location.html#L14" kind="variable" beg="14" end="14">lineBegin</a>; <a title="Permalink to this symbol" href="#Location.lineBegin" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L14">#</a></dt>
<dt class="decl">char* <a class="symbol _variable" name="Location.to" href="./htmlsrc/dil.Location.html#L14" kind="variable" beg="14" end="14">to</a>; <a title="Permalink to this symbol" href="#Location.to" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L14">#</a></dt>
<dd class="ddef">
<div class="summary">Used to calculate the column.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Location.TAB_WIDTH" href="./htmlsrc/dil.Location.html#L16" kind="variable" beg="16" end="16">TAB_WIDTH</a>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Location.TAB_WIDTH" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L16">#</a></dt>
<dd class="ddef">
<div class="summary">The default width of the tabulator character.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="Location.this" href="./htmlsrc/dil.Location.html#L19" kind="ctor" beg="19" end="22">this</a><span class="params">(char[] <em>filePath</em>, size_t <em>lineNum</em>)</span>; <a title="Permalink to this symbol" href="#Location.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L19">#</a></dt>
<dd class="ddef">
<div class="summary">Forwards the parameters to the second constructor.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="Location.this:2" href="./htmlsrc/dil.Location.html#L25" kind="ctor" beg="25" end="28">this</a><span class="params">(char[] <em>filePath</em>, size_t <em>lineNum</em>, char* <em>lineBegin</em>, char* <em>to</em>)</span>; <a title="Permalink to this symbol" href="#Location.this:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L25">#</a></dt>
<dd class="ddef">
<div class="summary">Constructs a Location object.</div></dd>
<dt class="decl">void <a class="symbol _function" name="Location.set" href="./htmlsrc/dil.Location.html#L30" kind="function" beg="30" end="33">set</a><span class="params">(char[] <em>filePath</em>, size_t <em>lineNum</em>)</span>; <a title="Permalink to this symbol" href="#Location.set" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L30">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Location.set:2" href="./htmlsrc/dil.Location.html#L35" kind="function" beg="35" end="39">set</a><span class="params">(char[] <em>filePath</em>, size_t <em>lineNum</em>, char* <em>lineBegin</em>, char* <em>to</em>)</span>; <a title="Permalink to this symbol" href="#Location.set:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L35">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Location.set:3" href="./htmlsrc/dil.Location.html#L41" kind="function" beg="41" end="47">set</a><span class="params">(size_t <em>lineNum</em>, char* <em>lineBegin</em>, char* <em>to</em>)</span>; <a title="Permalink to this symbol" href="#Location.set:3" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L41">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="Location.setFilePath" href="./htmlsrc/dil.Location.html#L49" kind="function" beg="49" end="52">setFilePath</a><span class="params">(char[] <em>filePath</em>)</span>; <a title="Permalink to this symbol" href="#Location.setFilePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L49">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _function" name="Location.calculateColumn" href="./htmlsrc/dil.Location.html#L60" kind="function" beg="60" end="91">calculateColumn</a><span class="params">(uint <em>tabWidth</em> = Location.TAB_WIDTH)</span>; <a title="Permalink to this symbol" href="#Location.calculateColumn" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L60">#</a></dt>
<dd class="ddef">
<div class="summary">Uses a simple method to count the number of characters in a string.</div>
<p class="sec_header">Note:</p>Unicode compound characters and other special characters are not
 taken into account.
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>tabWidth</em></td><td>the width of the tabulator character.</td></tr></table></dd>
<dt class="decl">alias calculateColumn <a class="symbol _alias" name="Location.colNum" href="./htmlsrc/dil.Location.html#L92" kind="alias" beg="92" end="92">colNum</a>; <a title="Permalink to this symbol" href="#Location.colNum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.Location.html#L92">#</a></dt>
<dd class="ddef"></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:54 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>